<!--
 * @Author: jay
 * @Date: 2021-08-17 15:57:03
 * @LastEditTime: 2021-08-17 16:22:53
 * @LastEditors: Please set LastEditors
 * @Description: 超出部分显示方式
 * @FilePath: \Briup\Common\study\2-css\3-其他样式规则\3-overflow.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>overflow</title>
    <style>
        .outer{
            width: 500px;
            height: 300px;
            background-color: mediumseagreen;
            margin: 0 auto;                                 /* 块元素的水平居中 */
            /* overflow: hidden; */
            /* overflow-x: hidden;
            overflow-y: scroll; */
            overflow: auto;
        }
        .outer > .inner{
            width: 100px;
            height: 2000px;
            background-color: pink;
            opacity: .6;
        }
        input:focus{
            border-color:purple ;
            outline-color: pink;
            outline-width: 2px;
            outline-style:solid ; 
            outline-offset: 5px;
        }
    </style>
</head>
<body>
    <input type="text">
    <div class="outer">
        <div class="inner">
            hello
            <div style="height: 100px;"></div>
            world
        </div>
    </div>
</body>
</html>